﻿using System;
using Service.Infrastructure.Result;

namespace Service.Infrastructure.Interface
{
    /// <summary>
    ///     日志接口
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        ///     查询日志
        /// </summary>
        /// <returns></returns>
        ServiceResult QueryLogs();

        /// <summary>
        ///     处理日志
        /// </summary>
        /// <param name="id">异常Id</param>
        /// <returns></returns>
        ServiceResult ProcessingLog(Guid id);

        /// <summary>
        ///     记录日志
        /// </summary>
        /// <param name="info">信息源</param>
        /// <param name="otherInfo">其他信息</param>
        /// <returns></returns>
        ServiceResult Logging<T>(T info, string otherInfo) where T : class;

    }


}
